<?php
	
class CommentForm extends CFormModel{

	public $parentid;
	public $content;
	public $code;

	public function rules()
	{
		return array(
				array("parentid,content,code","required","message"=>'{attribute}不能为空'),
				array("code","captcha","message"=>'{attribute}不正确')
			);
	}


	public function attributeLabels()
	{
		return array('content'=>'评论','code'=>'验证码');
	}

}

?>